{% extends "base.html" %}

{% block greeting %}
  {% if profiler %}
    <h4>Hi {{ user|capfirst }}! Here is the information we have on file:</h4>
  {% else %}
    {# The profiler is not in the profilers database #}
    <h4>There is no such user!</h4>
  {% endif %}
{% endblock greeting %}

{% block form %}
  {% if profiler %}
    <form action="/edit_user" method="post" name="edit_my_info_form">
      <div id="user_info">
        <div>Google Username: <b>{{ profiler.user }}</b></div>
        <input type="hidden" name="username" value={{ profiler.user }} />
        <div>Name: <input type="text" value="{{ profiler.nickname }}" name="nickname"/></div>
        <div>Money: <input type="text" value="{{ profiler.money }}" name="money"/></div>
     </div>
      <div><input type="submit" name="submit_button" value="Submit"></div>
    </form>
  {% else %}
    <h5>Check your spelling</h5>
  {% endif %}
{% endblock form %}